﻿<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<TITLE>网站后台管理系统</TITLE>
<link rel="stylesheet" href="images/CssAdmin.css">
<script language="javascript" src="js/Html.js"></script>
<script>  
	function	closeErrors() {   
	    return  true;   
	}   
	window.onerror=closeErrors;   
    function statusMessageObject(p,d){   
	    this.msg=MESSAGE;
	    this.out=" " ;  
	    this.pos= POSITION;   
	    this.delay=DELAY;
	    this.i=0;
	    this.reset=clearMessage; 
    }   
    function clearMessage(){   
   		 this.pos=POSITION;
    }   
    var POSITION=100;
    var DELAY=5;
    var  MESSAGE= "";
    var  scroll=new statusMessageObject();
    function scroller() {   
   		 for (scroll.i = 0; scroll.i < scroll.pos; scroll.i++) {   
   		 	scroll.out += " ";
    	}   
    	if (scroll.pos >= 0)   
  			scroll.out += scroll.msg;
    	else
        	scroll.out = scroll.msg.substring(-scroll.pos,scroll.msg.length);  
    	window.status = scroll.out;
    	scroll.out = " ";
    	scroll.pos--;
    	if (scroll.pos < -(scroll.msg.length)) {   
  			scroll.reset();
    	}   
    	setTimeout ('scroller()',scroll.delay);
    }
       
    function snapIn(jumpSpaces,position) {   
	    var msg = scroll.msg;
	    var out = "";
	    for (var i=0; i<position; i++){
		    out += msg.charAt(i);
		}   
	    for (i=1;i<jumpSpaces;i++){
		    out += " ";
		}
	    out += msg.charAt(position);
	    window.status = out;
	    if (jumpSpaces <= 1) {   
	    	position++;
		    if (msg.charAt(position) == ' ')   {
			    position++; 
			}
		    jumpSpaces = 100-position;
	    } else if (jumpSpaces >3) {
		    jumpSpaces *= .75;
		}  else{
			jumpSpaces--;
		}   
    	if (position != msg.length) {   
   			 var cmd = "snapIn(" + jumpSpaces + "," + position + ")";   
    		scrollID = window.setTimeout(cmd,scroll.delay);   
    	} else {   
		    window.status="";
		    jumpSpaces=0;
		    position=0;
		    cmd = "snapIn(" + jumpSpaces + "," + position + ")";   
		    scrollID = window.setTimeout(cmd,scroll.delay);   
    		return false ;
    	}   
    	return true;
    }   
    snapIn(100,0);   
 
	function switchSysBar(){
	   if (switchPoint.innerText==3){
			switchPoint.innerText=4;
	  		document.all("frameTitle").style.display="none";
	   } else {
	  		switchPoint.innerText=3;
	  		document.all("frameTitle").style.display="";
	   }
	}
 
	var dragapproved=false;
	var zcor,xcor,ycor;
	
	function movescontentmain(){
		if (event.button==1 && dragapproved){
			zcor.style.pixelLeft=tempvar1+event.clientX-xcor;
			zcor.style.pixelTop=tempvar2+event.clientY-ycor;
			//leftpos=document.all.scontentmain.style.pixelLeft-document.body.scrollLeft;
			//toppos=document.all.scontentmain.style.pixelTop-document.body.scrollTop;
			return false;
		}
	}


	function dragscontentmain(){
		if (!document.all)
			return
		if (event.srcElement.id=="scontentbar"){
			dragapproved=true;
			//zcor=scontentmain;
			tempvar1=zcor.style.pixelLeft;
			tempvar2=zcor.style.pixelTop;
			xcor=event.clientX;
			ycor=event.clientY;
			//document.onmousemove=movescontentmain;
		}
	}
	//document.onmousedown=dragscontentmain;
	document.onmouseup=new Function("dragapproved=false");

	function MM_preloadimages() { //v3.0
  		var d=document; 
  		if(d.images){ 
  	  		if(!d.MM_p) 
  	  	  		d.MM_p=new Array();
    		var i,j=d.MM_p.length,a=MM_preloadimages.arguments; 
    		for(i=0; i<a.length; i++)
        		if (a[i].indexOf("#")!=0){ 
            		d.MM_p[j]=new Image; 
            		d.MM_p[j++].src=a[i];
            	}
        	}
	}

	function MM_popupMsg(msg) { //v1.0
  		alert(msg);
	}
</script>
<style type="text/css">
<!--
.STYLE1 {
	color: #FF0000
}
-->
</style>
</HEAD>
<BODY leftmargin="0" topmargin="0" rightmargin="0" onLoad="MM_preloadimages('images/100-1.gif')" scroll="no"  bottom="0">
	<TABLE height="100%" cellSpacing="0" cellPadding="0" border="0" width="100%">
		<TR>
			<TD colSpan="3">
				<IFRAME style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 60" name="topFrame" id="topFrame" marginWidth="0" marginHeight="0" src="sysTop.action" frameBorder="0" noResize scrolling="no"></IFRAME>
			</TD>
		</TR>
		<TR>
			<TD width="110" height="100%" rowspan="2" align="middle" bgcolor="#FFFFFF" id="frameTitle">
				<iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 180; HEIGHT: 100%" name="leftFrame" id="leftFrame" marginwidth="0" marginheight="0" src="left.jsp" frameborder="0" noresize scrolling="no"></iframe>
				<br>
			</TD>
			<TD width="10" height="100%" rowspan="2" align="center" bgcolor="#03A8F6" onClick="switchSysBar()">
				<FONT style="FONT-SIZE: 10px; CURSOR: hand; COLOR: #ffffff; FONT-FAMILY: Webdings">
					<SPAN id="switchPoint">3</SPAN> 
				</FONT>
			</TD>
			<TD height="100%">
				<iframe style="Z-INDEX: 4; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" name="mainFrame" id="mainFrame" marginwidth="16" marginheight="16" src="right.jsp" frameborder="0" noresize scrolling="yes"> </iframe>
			</TD>
		</TR>
		<%--
		<TR>
			<TD height="25">
				<iframe	style="Z-INDEX: 3; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 25" name="headFrame" id="mainFrame" marginwidth="16" marginheight="3"
					src="SysHead.asp" frameborder="0" scrolling="no"> </iframe>
			</TD>
		</TR>
		 --%>
	</TABLE>
<%--
<div id="scontentmain">
	<div align="right" id="scontentbar" onClick="onoffdisplay()"></div>
		<div id="scontentsub">
			<table width="95" height="109" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="95" height="26" background="images/act_btn.gif">
					<div align="center"><a href="u1.asp" target="main">返回系统桌面</a></div>
					</td>
				</tr>
				<tr>
					<td>
					<div align="center"><a href="PassUpdate.asp" target="main">修改个人密码</a></div>
					</td>
				</tr>
			
			</table>
		</div>
	</div>
</div>
 --%>

</BODY>
<script>
var w=document.body.clientWidth-180;
var h=30;


////Do not edit pass this line///////////
w+=document.body.scrollLeft;
h+=document.body.scrollTop;

var leftpos=w;
var toppos=h;
//scontentmain.style.left=w;
//scontentmain.style.top=h;

function onoffdisplay(){
if (scontentsub.style.display=='') 
scontentsub.style.display='none';
else
scontentsub.style.display='';
}

function staticize(){
w2=document.body.scrollLeft+leftpos;
h2=document.body.scrollTop+toppos;
scontentmain.style.left=w2;
scontentmain.style.top=h2;
}
window.onscroll=staticize;
</script>
</HTML>